IF(NOT DAS_OPENGL_INCLUDED)
    SET(DAS_OPENGL_INCLUDED TRUE)
    MESSAGE(STATUS "dasOpenGL module included.")

    ADD_MODULE_DAS(opengl opengl opengl)
    ADD_MODULE_DAS(opengl opengl opengl_boost_internal)
    ADD_MODULE_DAS(opengl opengl opengl_boost)
    ADD_MODULE_DAS(opengl opengl opengl_state)
    ADD_MODULE_DAS(opengl opengl opengl_ttf)
    ADD_MODULE_DAS(opengl opengl opengl_gen)
    ADD_MODULE_DAS(opengl opengl opengl_cache)
    ADD_MODULE_DAS(glsl glsl glsl_opengl)

    install(DIRECTORY ${PROJECT_SOURCE_DIR}/modules/dasOpenGL/opengl
        DESTINATION ${DAS_INSTALL_MODULESDIR}/dasOpenGL
        FILES_MATCHING
        PATTERN "*.das"
    )

    install(DIRECTORY ${PROJECT_SOURCE_DIR}/modules/dasOpenGL/glsl
        DESTINATION ${DAS_INSTALL_MODULESDIR}/dasOpenGL
        FILES_MATCHING
        PATTERN "*.das"
    )

    file(GLOB DAS_OPENGL_EXAMPLES
        ${PROJECT_SOURCE_DIR}/modules/dasOpenGL/examples/*.das
    )

    install(FILES ${DAS_OPENGL_EXAMPLES}
        DESTINATION ${DAS_INSTALL_EXAMPLESDIR}/opengl
    )
    install(FILES ${PROJECT_SOURCE_DIR}/modules/dasOpenGL/examples/image.png
        DESTINATION ${DAS_INSTALL_EXAMPLESDIR}/media
    )

    IF ((NOT ${DAS_BGFX_DISABLED}) OR (NOT DEFINED DAS_BGFX_DISABLED))
        install(FILES ${PROJECT_SOURCE_DIR}/modules/dasBGFX/bgfx/bgfx/examples/assets/meshes/orb.obj
            DESTINATION ${DAS_INSTALL_EXAMPLESDIR}/media
        )
    ENDIF ()
ENDIF()
